define(['text!./basic.html', 'css!./basic.css'], function( html) {
	avalon.templateCache['basic']=html;
	var vm = avalon.define({
	    $id: "basic",
	    back:function(){
	    	Router.go('/Home/Home');
//	    	vm.role = Router.contentList;
	    },
	    allergic:function(){
	    	Router.go('/allergic/allergic');
	    },
	    hobby:function(){
	    	Router.go('/hobby/hobby');
	    },
	    blooding:function(){
	    	Router.go('/blooding/blooding');
	    },
	    target:function(){
	    	Router.go('/target/target');
	    },
	    user:{},
	    getData:function(){
	    	httpPost('user/getUser', {
				userId: Router.contentList
			}).done(function(data) {
				if("200" == data.code) {
					vm.user=data.user; 
					setstorage('member',data.user);
				} else {
					msgbox('提示',data.msg);
				}
			});
	   },
	   init:function(){
	   	vm.getData();
	   }
  });
});